import { EntitySchema } from '@mikro-orm/core';

export class Migrations {
  id!: number;
  migration!: string;
  batch!: number;
}

export const MigrationsSchema = new EntitySchema({
  class: Migrations,
  properties: {
    id: { primary: true, type: 'number' },
    migration: { type: 'string', length: 255 },
    batch: { type: 'number' },
  },
});
